﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_kich_hoat_tai_khoan : System.Web.UI.UserControl
{
    protected string strEmail;
    protected string strMaKichHoat;
    protected string className = "UserControl_kich_hoat_tai_khoan";

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ActiveUser();
        }
    }

    /// <summary>
    /// Kích hoạt tài khoản.
    /// Author: NguyenTV - 30/09/2013
    /// </summary>
    private void ActiveUser()
    {
        try
        {
            strMaKichHoat = clsCommon.fncGetRoute(this.Page, "param1");
            if (clsUsers.fncUser_KichHoat(strMaKichHoat, this.Page)) MSG_ACTIVE_OK.Visible= true;
            else MSG_ACTIVE_NOT_OK.Visible=true;
        }
        catch (Exception ex)
        {
            OsPortal.oFileHelper.WriteLogErr(className, "ActiveUser()", ex.ToString());
        }
    }



}